package com.api.syh56.shengyunhui.entity.adminEntity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("admin_contact")
public class AdminContact {
    @Column(name = "id",isAutoIncrement = true,isKey = true)
    Long id;

    /**
     * 公司名称
     */
    @Column(name = "company")
    String company;

    /**
     * 职员id
     */
    @Column(name = "sid",comment = "职员id")
    Long sid;

    /**
     * 运单id
     */
    @Column(name = "wid",comment = "运单id")
    Long wid;

    /**
     * 专线用户id
     */
    @Column(name = "uid",comment = "专线用户id")
    Long uid;

    @Column(name = "creation_time",comment = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime creationTime;

    @Column(name = "last_modification_time") // 最后修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastModificationTime;
}
